package com.grade.common.core.page;

import java.io.Serializable;
import java.util.List;

/**
 * 表格分页数据对象
 * 
 * @author grade
 */
public class DynamicTableDataInfo implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 列表数据 */
    private List<?> columns;

    private int code;

    /** 消息内容 */
    private String msg;

    private Long id;

    /**
     * 表格数据对象
     */
    public DynamicTableDataInfo()
    {
    }

    /**
     * 分页
     *
     * @param columns 总记录数
     */
    public DynamicTableDataInfo(Long id, List<?> columns)
    {
        this.id=id;
        this.columns = columns;
    }

    public List<?> getColumns() {
        return columns;
    }

    public void setColumns(List<?> columns) {
        this.columns = columns;
    }

    public int getCode()
    {
        return code;
    }

    public void setCode(int code)
    {
        this.code = code;
    }

    public String getMsg()
    {
        return msg;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setMsg(String msg)
    {
        this.msg = msg;
    }
}